FROM mysql:5.7

ARG PINPOINT_VERSION=${PINPOINT_VERSION:-2.2.0}

COPY CreateTableStatement-mysql.sql /docker-entrypoint-initdb.d/CreateTableStatement-mysql.sql
COPY SpringBatchJobRepositorySchema-mysql.sql /docker-entrypoint-initdb.d/SpringBatchJobRepositorySchema-mysql.sql

RUN sed -i '/^--/d' /docker-entrypoint-initdb.d/CreateTableStatement-mysql.sql \
	&& sed -i '/^--/d' /docker-entrypoint-initdb.d/SpringBatchJobRepositorySchema-mysql.sql \

